import os

prefix = 'gg'
suffix = '@knlib.com'
a = 0
for i in range(1, 51):
    if i in [139, 141, 142, 149]:
        continue
    # for i in [139, 167, 170]:
    a += 1
    emailId = prefix + str(i) + suffix
    jar_cmd = 'java -Doperation.name=transfer ' + '-DemailId=' + emailId + ' -Drun.in.aws=true -Dthread.num=20 -jar  transfer_nocheck.jar'
    cmd = 'nohup ' + jar_cmd + ' > ' + './transfer_log/' + emailId + "_transfer.log &"
    print(cmd)
print(a)
# os.system(cmd)
# os.system()
